﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
        xmlDoc.async = "false";
        xmlDoc.load("1.xml");
        var docs = $(xmlDoc.xml);
        docs.find("book").eq(0);
        var ss = xmlDoc.getElementsByTagName('Books/book')[0];
        var root = ss.ownerDocument.createElement("rrrr");
        root.setAttribute("ss", "123");
        root.text = "555";
        ss.appendChild(root);
        console.log(xmlDoc.xml);
    </script>
</head>
<body>
</body>
</html>
